(function(){
    const text = '小邵改装';
    const watermarkId = 'global-watermark';
    if(document.getElementById(watermarkId)) return;
    const wm = document.createElement('div');
    wm.id = watermarkId;
    wm.style.pointerEvents = 'none';
    wm.style.position = 'fixed';
    wm.style.left = '0';
    wm.style.top = '0';
    wm.style.width = '100vw';
    wm.style.height = '100vh';
    wm.style.zIndex = '9999';
    wm.style.opacity = '0.15';
    // 去掉背景线
    // wm.style.background = ...
    wm.style.display = 'flex';
    wm.style.flexWrap = 'wrap';
    wm.style.alignItems = 'center';
    wm.style.justifyContent = 'center';
    wm.style.userSelect = 'none';
    // 文字水印（6行×6列）
    for(let i=0;i<36;i++){
        const span = document.createElement('span');
        span.textContent = text;
        span.style.display = 'inline-block';
        span.style.transform = `rotate(-20deg)`;
        span.style.fontSize = '1.1rem';
        span.style.color = '#222';
        span.style.margin = '1.2rem';
        span.style.opacity = '0.3';
        span.style.whiteSpace = 'pre-line';
        wm.appendChild(span);
    }
    document.body.appendChild(wm);
})(); 